const userInfo = (state = '', action: { type: string; payload: string }) => {
  switch (action.type) {
    case 'setToken':
      return action.payload
    default:
      return state
  }
}
export default userInfo
